<!DOCTYPE html>
<html>

    <head lang="en">
        <meta charset="UTF-8">
        <title>意见反馈</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <meta name="format-detection" content="telephone=no">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />

        <link href="{{asset('Home/css')}}/dlstyle.css" rel="stylesheet" type="text/css">
        <link rel="stylesheet" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
        <link rel="stylesheet" href="{{asset('Home/css')}}/amazeui.min.css" />
        <script src="{{asset('Home/js')}}/jquery.min.js"></script>
        <script src="{{asset('Home/js')}}/amazeui.min.js"></script>

    </head>
<body>
<div class="login-boxtitle">
            <a href="/"><img alt="" src="{{asset('Home/images')}}/qqa.jpg" style="height:55px;margin:20px" /></a>
    <div id="content1">
        <div style="position:absolute; margin-left:30%; margin-top:-2%"><h1>用户反馈</h1></div>
        <div class="title"  style="border-top:3px solid #f07700"></div>
        <div style="margin-left:15%; width:70%; margin-top:30px;">您好！非常感谢您来李永衡网浏览购物。为更好地提升我们的服务，特邀请您对李永衡网进行意见反馈。感谢您的支持！</div>
        <div class="main" style="background:#faf0e6;border:2px solid #e8d4be; padding:45px; padding-top:15px; margin-top:10px;">
                <div class="form-group" style="margin-top:30px;">
                昵称：<input type="text" name="name" class="form-control" style="width:50%" id="i1">
                </div>
                <div class="form-group">
                邮箱：<input type="text" name="email" class="form-control" style="width:50%" id="i3">
                </div>  
                <div class="form-group">
                您对"李永衡网站"有哪些期望或建议？
                <textarea name="message" id="message" cols="30" rows="7" class="form-control"></textarea>  
                </div> 
                <center>
                <div class="form-group">
                <a href="" class="btn-lg btn-danger btn-commit" >提交</a>
                </div></center>
    </div>
</div>
<div class="footer ">
            <div class="footer-hd ">
                <p>
                    <a href="javascript:; ">恒望科技</a>
                    <b>|</b>
                    <a href="javascript:; ">商城首页</a>
                    <b>|</b>
                    <a href="javascript:; ">支付宝</a>
                    <b>|</b>
                    <a href="javascript:; ">物流</a>
                </p>
            </div>
            <div class="footer-bd ">
                <p>
                    <a href="javascript:; ">关于恒望</a>
                    <a href="javascript:; ">合作伙伴</a>
                    <a href="javascript:; ">联系我们</a>
                    <a href="javascript:; ">网站地图</a>
                    <em>© 2015-2025 Hengwang.com 版权所有. elgots@163.com</em>
                </p>
            </div>
        </div>
   </div> 
</body>
</html>
<script>
    $('a.btn-commit').on('click',function() {
        var name = $('input[name=name]').val();
        var email = $('input[name=email]').val();
        var message = $('#message').val();
        $.ajax({
            type:'post',
            url:'{{url("/dosuggest")}}',
            data:'name='+name+'&email='+email+'&message='+message+'&_token={{csrf_token()}}',
            success:function (data) {
                if (data.status==2003) {
                    alert('提交成功'); 
                    // location.href = '{{url("/suggest")}}';
                } else if (data.status==2000){
                    alert('请填写昵称');
                } else if (data.status==2001){
                    alert('请填写邮箱');
                } else if (data.status==2002){
                    alert('请填写内容');
                } else if (data.status==2004){
                    alert('提交失败');
                }
            }
        });
    });
</script>